package com.atguigu.springbootdemo.customer.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ClassName: Customer
 * Package: com.atguigu.springbootdemo.bean
 * Description:
 *
 * @Author:
 * @Create: 2024/3/12 15:16
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer {
    @TableId(value = "id",type = IdType.AUTO)  //标识根据数据库自增生成主键
    private Integer id;
    private String username;
    private Integer age;
}
